import { request } from '../service'
import IBaseObj from '#/index'

const queryStation = (data: IBaseObj) =>
  request({
    url: '/project/station/query',
    method: 'POST',
    data,
  })

const queryStationList = (pid: string) =>
  request({
    url: `/project/station/list/${pid}`,
    method: 'GET',
  })

const batchSaveStation = (data: IBaseObj) =>
  request({
    url: '/project/station/create/batch',
    method: 'POST',
    data,
  })
const delUrl = '/project/station'

export default {
  queryStation,
  queryStationList,
  batchSaveStation,
  delUrl,
}
